/*
 * @Author: xiaxia
 * @Description: 
 * @Date: 2024-05-07 17:36:25
 * @LastEditTime: 2024-06-03 10:46:57
 * @FilePath: \vue-admin-template\src\store\index.js
 */
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'

Vue.use(Vuex)

let state = {
  // 外销发票类型 -含所有票型
  tpyeInvioceAll: [
    { value: '1', label: '纸质专票' },
    { value: '2', label: '纸质普票' },
    { value: '3', label: '电子专票' },
    { value: '4', label: '电子普票' },
    { value: '5', label: '外销发票' },
    { value: '8', label: '机动车销售' },
    { value: 'I', label: '数电纸专' },
    { value: 'J', label: '数电纸普' },
    { value: 'K', label: '数电专票' },
    { value: 'L', label: '数电普票' },
    { value: null, label: '所有票型' },
  ],
  // 不同发票类型的tag
  tagType:{
    1: 'gray',
    2: 'success',
    3: 'warning',
    4: 'danger',
    5: 'info',
    8: 'info',
    I: 'gray',
    J: 'success',
    K: 'warning',
    L: 'danger',
  },
  tagEffect:{
    8: 'dark',
    I: 'dark',
    J: 'dark',
    K: 'dark',
    L: 'plain',
  },
  // 表格数据
  invioceLists: [
    { 
      id: "1",
      codeInvoice: '037002300311',
      numInvoice: "00412134",
      unAmount: "14.68",
      taxAm: "1.32",
      inAmount: "16.00",
      kpDate: "2016-05-01",
      tpyeInvioce: "1",
      custName:'日月重工股份有限公司',
    },
    { 
      id: "2",
      codeInvoice: '037002300311',
      numInvoice: "00412134",
      unAmount: "14.68",
      taxAm: "1.32",
      inAmount: "16.00",
      kpDate: "2016-05-01",
      tpyeInvioce: "2",
      custName:'日月重工股份有限公司',
    },
    { 
      id: "8",
      codeInvoice: '037002300311',
      numInvoice: "00412134",
      unAmount: "14.68",
      taxAm: "1.32",
      inAmount: "16.00",
      kpDate: "2016-05-01",
      tpyeInvioce: "3",
      custName:'日月重工股份有限公司',
    },
    { 
      id: "9",
      codeInvoice: '037002300311',
      numInvoice: "00412134",
      unAmount: "14.68",
      taxAm: "1.32",
      inAmount: "16.00",
      kpDate: "2016-05-01",
      tpyeInvioce: "4",
      custName:'日月重工股份有限公司',
    },
    { 
      id: "10",
      codeInvoice: '037002300311',
      numInvoice: "00412134",
      unAmount: "14.68",
      taxAm: "1.32",
      inAmount: "16.00",
      kpDate: "2016-05-01",
      tpyeInvioce: "5",
      custName:'日月重工股份有限公司',
    },
    { 
      id: "11",
      codeInvoice: '037002300311',
      numInvoice: "00412134",
      unAmount: "14.68",
      taxAm: "1.32",
      inAmount: "16.00",
      kpDate: "2016-05-01",
      tpyeInvioce: "8",
      custName:'杭州中航云水科技有限公司',
    },
    { 
      id: "3",
      codeInvoice: '',
      numInvoice: "24622000000013293785",
      unAmount: "14.68",
      taxAm: "1.32",
      inAmount: "16.00",
      kpDate: "2016-05-01",
      tpyeInvioce: "I",
      custName:'杭州中航云水科技有限公司',
    },
    { 
      id: "4",
      codeInvoice: '',
      numInvoice: "24622000000013293785",
      unAmount: "118.35",
      taxAm: "10.56",
      inAmount: "129.00",
      kpDate: "2016-05-01",
      tpyeInvioce: "J",
      custName:'杭州中航云水科技有限公司',
    },
    { 
      id: "5",
      codeInvoice: '',
      numInvoice: "24622000000013293785",
      unAmount: "118.35",
      taxAm: "10.56",
      inAmount: "129.00",
      kpDate: "2016-05-01",
      tpyeInvioce: "K",
      custName:'杭州中航云水科技有限公司',
    },
    { 
      id: "6",
      codeInvoice: '',
      numInvoice: "24622000000013293785",
      unAmount: "118.35",
      taxAm: "10.56",
      inAmount: "129.00",
      kpDate: "2016-05-01",
      tpyeInvioce: "L",
      custName:'杭州中航云水科技有限公司',
    },
  ], 
  // 特定业务
  speBusiness:[
    { val: '1', label: '建筑服务' },
    { val: '2', label: '不动产销售' },
    { val: '3', label: '不动产经营租赁服务' },
  ],
}

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user
  },
  getters,
  state
})

export default store
